package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;
import org.jsola.hr.vo.CompanyAdditionalFieldsListVO;
import org.jsola.hr.vo.CompanyNecessaryFieldVO;

import java.util.List;

/**
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【员工动态表单】详情展示对象")
@Data
public class EmpFieldInfoDTO extends BaseDTO {

    private static final long serialVersionUID = 5589218034391265233L;

    @ApiModelProperty(notes = "模块编码")
    private String moduleCode;

    @ApiModelProperty(notes = "字段是多条还是单个")
    private Boolean multiple;

    @ApiModelProperty(notes = "字段列表，单个情况，当multiple为false时取此字段")
    private List<CompanyNecessaryFieldVO> fieldList;

    @ApiModelProperty(notes = "字段列表，多条情况，当multiple为true时取此字段")
    private List<List<CompanyNecessaryFieldVO>> multiFieldList;

    @ApiModelProperty(notes = "自定义字段列表")
    private List<CompanyAdditionalFieldsListVO> additionalFieldList;
}
